﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;

namespace BrnMall.Manager.Domain.Distribution
{
    /// <summary>
    /// 佣金提现
    /// </summary>
    [TableName("dis_BrokerageRequest")]
    public class BrokerageRequest
    {
        public int Id { get; set; }
        /// <summary>
        /// 店铺ID
        /// </summary>
        public int StoreId { get; set; }

        /// <summary>
        /// 提现人
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 提现人
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 请求订单号
        /// </summary>
        public string Brsn { get; set; }

        /// <summary>
        /// 提现类型0：微信企业转账
        /// </summary>
        public int RequestType { get; set; }
        /// <summary>
        /// 提现用户的平台OpenID
        /// </summary>
        public string RequestOpenId { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime RequestTime { get; set; }
        /// <summary>
        /// 提现金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 提现人真实姓名
        /// </summary>
        public string RequestUserRealName { get; set; }
        /// <summary>
        /// 提现银行账号
        /// </summary>
        public string RequestBankAccount { get; set; }
        /// <summary>
        /// 提现银行名称
        /// </summary>
        public string RequestBankName { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 状态0:待审核1：已审核，2：已拒绝
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 0：待发放，1：已发放
        /// </summary>
        public int PayStatus { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public int ApprovedUserId { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string ApprovedUserName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime ApprovedTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 打款时间
        /// </summary>
        public DateTime SendTime { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public BrokerageRequest()
        {
            Id = UserId = RequestType = 0;
            UserName =RequestOpenId=Brsn= string.Empty;
            RequestTime=new DateTime(1900,1,1);
            RequestUserRealName = RequestBankAccount = RequestBankName = PhoneNumber = string.Empty;
            Status = ApprovedUserId = 0;
            ApprovedUserName = string.Empty;
            ApprovedTime=SendTime= new DateTime(1900,1,1);
            Remark = string.Empty;
            Amount = PayStatus=StoreId= 0;

        }

    }
}
